package cn.ylz.ylmall.account.dao.persist.repository;

import cn.ylz.ylmall.account.pojo.entity.Permission;
import cn.ylz.ylmall.account.pojo.vo.PageData;
import cn.ylz.ylmall.account.pojo.vo.PermissionListVO;
import cn.ylz.ylmall.account.pojo.vo.PermissionStandardVO;

public interface IPermissionRepository {
    int countByName(String name);
    int insert(Permission permission);

    PermissionStandardVO getStandardById(Long id);

    int delete(Long id);

    int update(Permission permission);

    PageData<PermissionListVO> list(Integer pageNum,Integer pageSize);
}
